/*
Guillaume COLLOMBET
*/

#include "pixel.h"

void setR(Pixel* pixel, unsigned char r) {
    pixel->r = r;
}

void setV(Pixel* pixel, unsigned char v) {
    pixel->v = v;
}

void setB(Pixel* pixel, unsigned char b) {
    pixel->b = b;
}

unsigned char R(const Pixel* pixel) {
    return pixel->r;
}

unsigned char V(const Pixel* pixel) {
    return pixel->v;
}

unsigned char B(const Pixel* pixel) {
    return pixel->b;
}
